package com.gxa.learning.core.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @version E-learning
 * @Author lonny
 * @Date 2021/12/2 14:22
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Table(name = "tb_feedback")
public class Feedback implements Serializable {
    /**
     * 反馈id
     */
    @Id
    @Column(name = "feedback_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 培训项目id
     */
    @Column(name = "project_id")
    private Long projectId;
    /**
     * 培训学员id
     */
    @Column(name = "user_id")
    private Long userId;
    /**
     * 难易度星级
     */
    @Column(name = "feedback_degree")
    private Integer degree;
    /**
     * 合理性星级
     */
    @Column(name = "feedback_rationality")
    private Integer rationality;
    /**
     * 实用性星级
     */
    @Column(name = "feedback_practicality")
    private Integer practicality;
    /**
     * 反馈进度
     */
    @Column(name = "feedback_state")
    private Integer state;

    /**
     * 课程id
     */
    @Column(name = "course_id")
    private Integer courseId;

    @Column(name = "feedback_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date feedbackTime;

    @Column(name = "feedback_advice")
    private String feedbackAdvice;
    @Column(name = "feedback_receive_time")
    private String feedbackReceive;
}
